package com.superb.system.api.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * @Author: ajie
 * @CreateTime: 2024-05-14 09:30
 */
@Data
@Schema(title = "账号密码登录")
public class PwdLogin {

    @NotBlank(message = "用户名不能为空")
    @Schema(title = "用户名", requiredMode = Schema.RequiredMode.REQUIRED)
    private String username;

    @NotBlank(message = "登录密码不能为空")
    @Schema(title = "登录密码", requiredMode = Schema.RequiredMode.REQUIRED)
    private String password;

    @NotBlank(message = "登录验证码不能为空")
    @Schema(title = "验证码", requiredMode = Schema.RequiredMode.REQUIRED)
    private String code;

    @NotBlank(message = "验证码秘钥不能为空")
    @Schema(title = "生成验证码的key", requiredMode = Schema.RequiredMode.REQUIRED)
    private String key;

    @Schema(title = "登录类型", description = "0用户名登录、1手机号")
    private Integer type = 0;

}
